import request from '@/utils/request'

// 获取菜单信息
export function listAllNow() {
  return request({
    url: '/miaoShaGoods/listAllNow',
    method: 'get'
  })
}

export function findById(id) {
  return request({
    url: `/miaoShaGoods/findById/${id}`,
    method: 'get'
  })
}

export function addMiaosha(data) {
  return request({
    url: '/miaoShaGoods/addMiaosha',
    method: 'post',
    data: data
  })
}